home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Tools / lynx-2.4 / Makefile < prev    next >
Encoding:
Makefile  |  1995-06-28  |  20.9 KB  |  568 lines

  1. ##makefile for lynx
  2.  
  3. SHELL = /bin/sh
  4.  
  5. ##change the next line if you want lynx installed somewhere 
  6. ##besides /usr/local/bin
  7.  
  8. exec= /usr/skunk/bin
  9.  
  10. ##change the next line if you want the lynx man file installed somewhere
  11. ##besides /usr/man/man1
  12.  
  13. doc= /usr/skunk/man/man.1
  14.  
  15. ##change the next line if you want the lynx.cfg file installed somewhere
  16. ##besides /usr/local/lib
  17.  
  18. cfg= /usr/skunk/lib/lynx
  19.  
  20. #installbin= install -u bin -g bin -m 555 -o
  21. #installdoc= install -u bin -g bin -m 444
  22.  
  23.  
  24. #set the relative location of the WWW library Implementation directory, 
  25. #from this directory
  26. #do not set this to be an absolute path!!!
  27. WWWINC= WWW/Library/Implementation
  28.  
  29. # !!!!!!!!!!! Alternate socket functions for SOCKS !!!!!!!!!!!!!!!!!!
  30. # To make a SOCKSified lynx, include -DSOCKS in your SITE_LYDEFS and
  31. # SITE_DEFS, below, and point SOCKSLIB to your SOCKS library.  Note
  32. # that you may have problems accessing FTP servers.  Also, instead of
  33. # SOCKSifying lynx for use behind a firewall, you are better off if
  34. # you make it normally, and set it up to use a proxy server.  You can
  35. # SOCKSify the proxy server, and it will handle all clients, not just
  36. # Lynx (see the INSTALLATION file in this distribution).
  37. #SOCKSLIB= /usr/local/lib/libsocks.a
  38.  
  39. # !!!!!!!!!!!!!  DIRECT WAIS ACCESS !!!!!!!!!!!!!!!!!!!!!!!!!!
  40. # If you are adding direct wais access you must fill in the
  41. # location of wais.a, client.a and the standard math library, libm.a.  
  42. # You can pick up the freeWAIS source from sunsite.unc.edu  
  43. # or from ftp2.cc.ukans.edu.
  44. # Plese put an ABSOLUTE address here if you want it to work! 
  45. WAISLIB= ../../libwais/lib/libclient.a ../../libwais/lib/libwais.a -lm
  46.  
  47. # Make sco5 be the default target for Skunkware 5
  48.  
  49. all: sco5
  50.  
  51. #
  52. # if you are on one of the supported systems (see all: list below)
  53. # you should not have to modify anything from here down!
  54. # If you are not, then you should edit the generic: entry below.
  55. #
  56. # If you need ncurses, the latest version can always be found
  57. # in ftp://ftp.netcom.com/pub/zmbenhal/ncurses/
  58. #
  59.  
  60. targets:  
  61.     @echo
  62.     @echo "Please run make with one of the following arguments"
  63.     @echo "aix4       -- for RS/6000 running AIX 4.1.1"
  64.     @echo "aix32      -- for RS/6000 running AIX 3.2"
  65.     @echo "aix31      -- for RS/6000 running AIX 3.1 with curses bug"
  66.     @echo "apollo     -- apollo systems (untested)"
  67.     @echo "bsdi       -- BSD Interactive"
  68.     @echo "convex     -- for Convex C-series"
  69.     @echo "convex-ncurses -- for Convex C-series with ncurses package"
  70.     @echo "freebsd    -- for FreeBSD"
  71.     @echo "freebsd-ncurses -- for FreeBSD using ncurses package"
  72.     @echo "generic    -- for generic UNIX"
  73.     @echo "linux      -- for PC linux"
  74.     @echo "linux-ncurses -- for PC linux using ncurses package"
  75.     @echo "mips       -- for MIPS, svr3/bsd flavour (untested)"
  76.     @echo "netbsd     -- for NetBSD"
  77.     @echo "netbsd-ncurses -- for NetBSD using ncurses package"
  78.     @echo "next       -- for NeXT OS"
  79.     @echo "next-ncurses  -- for NeXT OS using ncurses package"
  80.     @echo "osf        -- for Alpha OSF/1"
  81.     @echo "ptx        -- for Sequent's DYNIX/ptx"
  82.     @echo "riscos     -- Control Data Unix machine running EP/IX"
  83.     @echo "sco        -- for SCO machines"
  84.     @echo "sco5       -- for SCO OpenServer 5.0 machines"
  85.     @echo "sgi        -- for SGI machines"
  86.     @echo "sun3       -- for SUN 3 OS"
  87.     @echo "sun4       -- for SUN 4 OS"
  88.     @echo "sun4-pure  -- for SUN 4 OS with PURIFY"
  89.     @echo "svr4       -- for SVR4"
  90.     @echo "snake      -- for HP-UX lt 9.01"
  91.     @echo "snake2     -- for HP-UX gte 9.01 (untested)"
  92.     @echo "solaris2   -- for Solaris 2.x"
  93.     @echo "ultrix     -- for DEC Ultrix"
  94.     @echo "unixware   -- for Novell's Unixware (untested)"
  95.     @echo "univell    -- for Novell's Unixware (untested)"
  96.     @echo "decstation -- for DEC Ultrix (same as ultrix above)"
  97.     @echo "isc        -- for Interactive Machines (untested)"
  98.     @echo "clean      -- removes all '.o' and 'core' files"
  99.     @echo "tar        -- runs clean, removes executable, and tars the whole directory"
  100.     @echo "compress   -- runs tar, then compresses the result"
  101.     @echo
  102.  
  103. # Map some extra commands to existing ones
  104. unix: generic
  105. decstation: ultrix
  106. univell: unixware
  107.  
  108. # Set SITE_LYDEFS to one or more of the defines for the WWW Library:
  109. SITE_LYDEFS = # -DDIRED_SUPPORT
  110.  
  111. # Set SITE_DEFS to one or more of the defines for lynx below:
  112. SITE_DEFS = # -DDIRED_SUPPORT
  113.  
  114. # if you are compiling on a previously unsupported system, modify
  115. # this generic entry!!
  116. #
  117. # defines include:
  118. # -DNO_CUSERID     if you don't have cuserid()
  119. # -DNO_UTMP       if you don't have utmp capibilities
  120. # -Dvfork=fork     if you don't have vfork()
  121. # -DMMDF       if you use MMDF instead of sendmail
  122. # -DFANCY_CURSES   enables fancy curses (bold, underline, reverse)
  123. # -DNO_KEYPAD      if you don't have keypad() and related defines
  124. # -DNO_SIZECHANGE  Disables window sizechange code
  125. # -DNO_CPU_LIMIT   Disables Max CPU timeout (includes CLOCKS_PER_SECOND)
  126. # -DNO_PUTENV      Define if you don't have a putenv call.
  127. # -DNO_CBREAK      if you don't have cbreak() (use crmode() instead)
  128. # -DUNDERLINE_LINKS  Define if you want links underlined instead of bold.
  129. # -DIGNORE_CTRL_C  Define if Control-C shouldn't exit lynx.
  130. # -DHP_TERMINAL    For DIM workaround to REVERSE problems on HP terminals.
  131. # -DLOCALE         For LOCALE support for international characters.
  132. # -DSOCKS       For making a SOCKSified lynx.
  133. #
  134. # if you would like to include support for local file management
  135. # you should define the following
  136. #
  137. # -DDIRED_SUPPORT  Define to allow local file management support
  138. # -DOK_TAR         Define to allow use of tar in dired support code
  139. # -DOK_GZIP        Define to allow use of gzip in dired support code
  140. # -DOK_ZIP         Define to allow use of zip and unzip in dired support code
  141. # -DOK_OVERRIDE    Define to allow keymap overrides in dired mode
  142. #
  143. # if you have the reverse clear screen problem of some SUN4 systems you
  144. # should define this in MCFLAGS (SITE_DEFS)
  145. #
  146. # -DREVERSE_CLEAR_SCREEN_PROBLEM 
  147. #
  148. # if you have an SVR4 system with the "type any key" problem, try defining
  149. # this in LYFLAGS (SITE_LYDEFS) and MCFLAGS (SITE_DEFS)
  150. #
  151. # -DSVR4_BSDSELECT
  152. #
  153. # Old Data General systems may need this in their SITE_LYDEFS
  154. # for their inet_addr(host) calls.
  155. #
  156. # -DDGUX_OLD
  157. #
  158. # if you would like logging of client requests via syslog(), you should
  159. # define this in MCFLAGS (SITE_DEFS)
  160. #
  161. # -DSYSLOG_REQUESTED_URLS
  162. #
  163. # if you would like to enable code to detect memory leaks define this in both
  164. # LYFLAGS (SITE_LYDEFS) and MCFLAGS (SITE_DEFS)
  165. #
  166. # -DLY_FIND_LEAKS
  167. #
  168. # if you would like "ls -l" emulation in local directory listings define
  169. # this in LYFLAGS (SITE_LYDEFS).
  170. #
  171. # -DLONG_LIST
  172. #
  173. # if you do not want "Up to" parent links in local directory listings define
  174. # this in LYFLAGS (SITE_LYDEFS).
  175. #
  176. # -DNO_PARENT_DIR_REFERENCE
  177. #
  178. # for installation of local execution links, please see the file userdefs.h
  179.  
  180. #generic machines with original Berkeley curses
  181. generic:  
  182.     @echo "You must first compile the WWW library in WWW/Library"
  183.     cd WWW/Library/unix; $(MAKE) LYFLAGS="$(SITE_LYDEFS)"
  184.     cd src; $(MAKE) all CC="cc" MCFLAGS="-g -DFANCY_CURSES -DUNIX \
  185.         -I../$(WWWINC) $(SITE_DEFS)" \
  186.         LIBS="-lcurses -ltermcap $(WAISLIB) $(SOCKSLIB)" \
  187.         WWWLIB="../WWW/Library/unix/libwww.a"
  188.  
  189. # Tested on C3 series under ConvexOS 10.1, CC V5.0;
  190. # Should work on other C-series
  191. convex:
  192.     cd WWW/Library/convex; $(MAKE) LYFLAGS="$(SITE_LYDEFS)"
  193.     cd src; $(MAKE) all CC="cc" MCFLAGS="-g -O1 \
  194.         -D__STDC__ \
  195.         -DNO_PUTENV -DNO_CBREAK -DNO_KEYPAD -DUSE_DIRENT -DUNIX \
  196.         -DSTDC_HEADERS -I../$(WWWINC) $(SITE_DEFS)" \
  197.         LIBS="-lcurses -ltermcap $(WAISLIB) $(SOCKSLIB)" \
  198.         WWWLIB="../WWW/Library/convex/libwww.a"
  199.  
  200. convex-ncurses:
  201.     cd WWW/Library/convex; $(MAKE) LYFLAGS="$(SITE_LYDEFS)"
  202.     cd src; $(MAKE) all CC="cc" MCFLAGS="-g -O1 \
  203.         -I/usr/local/include \
  204.         -DNCURSES -DFANCY_CURSES \
  205.         -D__STDC__ \
  206.         -DNO_PUTENV -DNO_CBREAK -DNO_KEYPAD -DUSE_DIRENT -DUNIX \
  207.         -DSTDC_HEADERS -I../$(WWWINC) $(SITE_DEFS)" \
  208.         LIBS="-L/usr/local/lib -lncurses \
  209.         -ltermcap $(WAISLIB) $(SOCKSLIB)" \
  210.         WWWLIB="../WWW/Library/convex/libwww.a"
  211.  
  212. mips:
  213.     cd WWW/Library/mips; $(MAKE) LYFLAGS="$(SITE_LYDEFS)"
  214.     cd src; $(MAKE) all CC="cc" MCFLAGS="-systype svr3 -g \
  215.         -DFANCY_CURSES -DUNIX -I/svr3/usr/include/bsd \
  216.         -I../$(WWWINC) -DNO_UTMP $(SITE_DEFS)" \
  217.         LIBS="-lcurses -lnsl -lbsd $(WAISLIB) $(SOCKSLIB)" \
  218.         WWWLIB="../WWW/Library/mips/libwww.a"
  219.  
  220. # FreeBSD doesn't have or need ranlib. (ignore the error message about that :)
  221. freebsd:
  222.     cd WWW/Library/freebsd; $(MAKE) LYFLAGS="$(SITE_LYDEFS)"
  223.     cd src; $(MAKE) all CC="cc" MCFLAGS="-O -DUNIX -DNO_KEYPAD -DNO_CUSERID \
  224.         -I../$(WWWINC) $(SITE_DEFS)"\
  225.         LIBS="-lcurses -ltermcap $(WAISLIB) $(SOCKSLIB)" \
  226.         WWWLIB="../WWW/Library/freebsd/libwww.a"
  227.  
  228. # FreeBSD doesn't have or need ranlib. (ignore the error message about that :)
  229. freebsd-ncurses:  
  230.     cd WWW/Library/freebsd; $(MAKE) LYFLAGS="$(SITE_LYDEFS)"
  231.     cd src; $(MAKE) all CC="cc" MCFLAGS="-O -DFANCY_CURSES -DNCURSES -DUNIX \
  232.         -DNO_KEYPAD -DNO_CUSERID -I../$(WWWINC) $(SITE_DEFS) \
  233.         -I/usr/include/ncurses" LIBS="-lncurses -lcompat \
  234.         -ltermcap $(WAISLIB) $(SOCKSLIB)" \
  235.         WWWLIB="../WWW/Library/freebsd/libwww.a"
  236.  
  237. # NetBSD doesn't have or need ranlib. (ignore the error message about that :)
  238. netbsd:  
  239.     cd WWW/Library/netbsd; $(MAKE) LYFLAGS="$(SITE_LYDEFS)"
  240.     cd src; $(MAKE) all CC="cc" MCFLAGS="-O -DUNIX -DNO_KEYPAD -DNO_CUSERID \
  241.         -I../$(WWWINC) $(SITE_DEFS)" \
  242.         LIBS="-lcurses -ltermcap $(WAISLIB) $(SOCKSLIB)" \
  243.         WWWLIB="../WWW/Library/netbsd/libwww.a"
  244.  
  245. # NetBSD doesn't have or need ranlib. (ignore the error message about that :)
  246. netbsd-ncurses:  
  247.     cd WWW/Library/netbsd; $(MAKE) LYFLAGS="$(SITE_LYDEFS)"
  248.     cd src; $(MAKE) all CC="cc" MCFLAGS="-O -DFANCY_CURSES -DNCURSES -DUNIX \
  249.         -DNO_KEYPAD -DNO_CUSERID -I../$(WWWINC) $(SITE_DEFS) \
  250.         -I/usr/include/ncurses" LIBS="-lncurses -lcompat \
  251.         -ltermcap $(WAISLIB) $(SOCKSLIB)" \
  252.         WWWLIB="../WWW/Library/netbsd/libwww.a"
  253.  
  254. # Tested on DN 3500 & 4500's running Domain O/S 10.4 BSD
  255. # -Acpu,mathchip may have to be changed on other machines - see man cpuhep
  256. apollo:
  257.     cd WWW/Library/apollo_m68k; $(MAKE) LYFLAGS="$(SITE_LYDEFS)"
  258.     cd src; $(MAKE) all CC="cc" MCFLAGS="-g -DUNIX -DNO_KEYPAD -DNO_CUSERID \
  259.         -D_BUILTINS -W0,-opt,4 -I../$(WWWINC) $(SITE_DEFS)" \
  260.         LIBS="-lcurses -ltermcap $(WAISLIB) $(SOCKSLIB)" \
  261.         WWWLIB="../WWW/Library/apollo_m68k/libwww.a $(MYWWWLIB)"
  262.  
  263. riscos:  
  264.     cd WWW/Library/unix; $(MAKE) CC="gcc" LYFLAGS="$(SITE_LYDEFS)"
  265.     cd src; $(MAKE) all CC="gcc" MCFLAGS="-g -DFANCY_CURSES -DUNIX \
  266.         -DNO_GETCWD -DNO_PUTENV -Dremove=unlink \
  267.         -I../$(WWWINC) $(SITE_DEFS)" \
  268.         LIBS="-lcurses -ltermcap $(WAISLIB) $(SOCKSLIB)" \
  269.         WWWLIB="../WWW/Library/unix/libwww.a "
  270.  
  271. # Lynx will not compile with the "free" cc compiler supplied 
  272. # with HP-UX.  You must use a purchased cc compiler to compile Lynx.
  273. snake:  
  274.     cd WWW/Library/snake; $(MAKE) CC="gcc" LYFLAGS="$(SITE_LYDEFS)"
  275.     cd src; $(MAKE) all CC="gcc" MCFLAGS="-g -DFANCY_CURSES -DUNIX \
  276.         -DSNAKE -I../$(WWWINC) $(SITE_DEFS)" \
  277.         LIBS="-lcurses -ltermcap $(WAISLIB) $(SOCKSLIB)" \
  278.         WWWLIB="../WWW/Library/snake/libwww.a "
  279.  
  280. snake2:
  281.     cd WWW/Library/snake; $(MAKE) CC="gcc" LYFLAGS="-D_INCLUDE_HPUX_SOURCE \
  282.         -D_INCLUDE_POSIX_SOURCE -D_INCLUDE_AES_SOURCE \
  283.         -D_INCLUDE_XOPEN_SOURCE $(SITE_LYDEFS)"
  284.     cd src; $(MAKE) all CC="gcc" MCFLAGS="-g -DFANCY_CURSES -DUNIX \
  285.         -DSNAKE -I../$(WWWINC) -D_INCLUDE_HPUX_SOURCE \
  286.         -D_INCLUDE_POSIX_SOURCE -D_INCLUDE_AES_SOURCE \
  287.         -D_INCLUDE_XOPEN_SOURCE $(SITE_DEFS)" \
  288.         LIBS="-lcurses -ltermcap $(WAISLIB) $(SOCKSLIB)" \
  289.         WWWLIB="../WWW/Library/snake/libwww.a "
  290.  
  291. svr4:  
  292.     cd WWW/Library/svr4; $(MAKE) LYFLAGS="-DSVR4_BSDSELECT $(SITE_LYDEFS)"
  293.     cd src; $(MAKE) all CC="cc" MCFLAGS="-g -DFANCY_CURSES -DUNIX \
  294.         -I../$(WWWINC) -DNO_UTMP -DSVR4 -DSVR4_BSDSELECT -DTRUE=1 \
  295.         -DFALSE=0 $(SITE_DEFS)" \
  296.         LIBS="-lcurses -lsocket -lnsl $(WAISLIB) $(SOCKSLIB)" \
  297.         WWWLIB="../WWW/Library/svr4/libwww.a"
  298.  
  299. ptx:  
  300.     cd WWW/Library/ptx; $(MAKE) LYFLAGS="-DNO_BCOPY -DSVR4_BSDSELECT \
  301.         -DNO_FILIO_H $(SITE_LYDEFS)"
  302.     cd src; $(MAKE) all CC="cc" MCFLAGS="-g -DFANCY_CURSES -DUNIX \
  303.         -DNO_FILIO_H -I../$(WWWINC) -DNO_UTMP -DSVR4 $(SITE_DEFS)" \
  304.         LIBS="-lcurses -lsocket -linet -lnsl $(WAISLIB)" \
  305.         WWWLIB="../WWW/Library/ptx/libwww.a"
  306.  
  307. unixware:
  308.     cd WWW/Library/svr4; $(MAKE) LYFLAGS="-DNO_BCOPY -DUNIXWARE $(SITE_LYDEFS)"
  309.     cd src; $(MAKE) all CC="cc" MCFLAGS="-g -DFANCY_CURSES -DUNIX \
  310.         -I../$(WWWINC) -DNO_UTMP -DSVR4 -DTRUE=1 -DFALSE=0 \
  311.         -DNO_BCOPY -DUNIXWARE $(SITE_DEFS)" \
  312.         LIBS="-lcurses -lsocket -lnsl $(WAISLIB) $(SOCKSLIB)" \
  313.         WWWLIB="../WWW/Library/svr4/libwww.a"
  314.  
  315. # SCO doesn't like line continuers?  (although others have said it does :)
  316. #     doesn't have or need ranlib. (ignore the error message about that :)
  317. #     can build lynx with its native rcc compiler.  (if you replace "gcc"
  318. #     with "rcc" for CC= :)
  319. #     has a const/volatile bug in its native cc compiler. (don't use it ;)
  320. sco:  
  321.     cd WWW/Library/unix; make CC="cc"
  322.     cd src; make all CC="cc" MCFLAGS="-O -DFANCY_CURSES -Dvfork=fork \
  323.         -DUNIX -DMMDF -I../$(WWWINC) -DNO_UTMP -DSCO -DNO_SIZECHANGE" \
  324.         LIBS="-lcurses -lsocket -ltermcap $(WAISLIB)" \
  325.         WWWLIB="../WWW/Library/unix/libwww.a"
  326.  
  327. sco5:  
  328.     cd WWW/Library/sco; $(MAKE) CC="cc -b elf" LYFLAGS="$(SITE_LYDEFS)"
  329.     cd src; $(MAKE) all CC="cc -b elf" MCFLAGS="-O -s -DFANCY_CURSES -DUNIX\
  330.         -DSCO -DMMDF -I../$(WWWINC) -DNO_UTMP -DNO_SIZECHANGE \
  331.         $(SITE_DEFS)" LIBS="$(WAISLIB) $(SOCKSLIB) -lcurses -lsocket \
  332.         -ltermcap -lmalloc"  WWWLIB="../WWW/Library/sco/libwww.a"
  333.  
  334. bsdi:  
  335.     cd WWW/Library/Implementation; $(MAKE) -f BSDI_Makefile LYFLAGS="$(SITE_LYDEFS)"
  336.     cd src; $(MAKE) all CC="cc" MCFLAGS="-g -DNO_CUSERID -DUNIX -DNO_FILIO_H \
  337.         -I../$(WWWINC) -DNO_UTMP -DSVR4 -DNO_KEYPAD $(SITE_DEFS)" \
  338.         LIBS="-lcurses -ltermcap $(WAISLIB) $(SOCKSLIB)" \
  339.         WWWLIB="../WWW/Library/svr4/libwww.a"
  340.  
  341. solaris2:
  342.     cd WWW/Library/solaris2; $(MAKE) CC="gcc" LYFLAGS="$(SITE_LYDEFS)"
  343.     cd src; $(MAKE) all CC="gcc" MCFLAGS="-g -DFANCY_CURSES -DUNIX -DSOLARIS2 \
  344.         -I../$(WWWINC) -DCURS_PERFORMANCE -DNO_UTMP -DUSE_DIRENT $(SITE_DEFS)" \
  345.         LIBS="-L/usr/ccs/lib -lcurses $(WAISLIB) $(SOCKSLIB) -lnsl -lsocket" \
  346.         WWWLIB="../WWW/Library/solaris2/libwww.a"
  347.  
  348. osf:            
  349.     cd WWW/Library/osf; $(MAKE) LYFLAGS="$(SITE_LYDEFS)"
  350.     cd src; $(MAKE) all CC="cc" MCFLAGS="-g -DFANCY_CURSES -DUNIX $(ADDFLAGS) \
  351.         -I../$(WWWINC) $(SITE_DEFS)" \
  352.         LIBS="-lcurses -ltermcap $(WAISLIB) $(SOCKSLIB)" \
  353.         WWWLIB="../WWW/Library/osf/libwww.a"
  354.  
  355. #for some reason loc_t isn't defined when compiling for debug on my system.
  356. #needed for NLchar.h
  357. dbg:   
  358.     cd WWW/Library/osf; $(MAKE) CC="gcc" LYFLAGS="-DDIRED_SUPPORT \
  359.         -DLY_FIND_LEAKS"
  360.     cd src; $(MAKE) all CC="gcc" MCFLAGS="-g -Wall $(ADDFLAGS) -DFANCY_CURSES \
  361.         -DLY_FIND_LEAKS -Dloc_t=_LC_locale_t -D_locp=__lc_locale\
  362.         -DDIRED_SUPPORT -DOK_TAR -DOK_GZIP -DOK_OVERRIDE \
  363.         -DUNIX -I../$(WWWINC) -DEXEC_LINKS \
  364.         -DALLOW_USERS_TO_CHANGE_EXEC_WITHIN_OPTIONS $(SITE_DEFS)" \
  365.         LIBS="-lcurses -ltermcap $(WAISLIB) $(SOCKSLIB)" \
  366.         WWWLIB="../WWW/Library/osf/libwww.a"
  367.  
  368.  
  369. sgi:
  370. # SGI doesn't have or need ranlib. (ignore the error message about that :)
  371.     cd WWW/Library/sgi; $(MAKE) LYFLAGS="$(SITE_LYDEFS)"
  372.     cd src; $(MAKE) all CC="cc" MCFLAGS="-g -cckr -DFANCY_CURSES -DNO_CUSERID \
  373.     -DUNIX -DSGI -Dvfork=fork -I../$(WWWINC) -DNO_UTMP $(SITE_DEFS)" \
  374.      LIBS="-lcurses -ltermcap -DSYSV \
  375.      -DPERFORMANCE $(WAISLIB) $(SOCKSLIB)" \
  376.      WWWLIB="../WWW/Library/sgi/libwww.a"
  377.  
  378. linux:
  379.     cd WWW/Library/unix; $(MAKE) CC="gcc" LYFLAGS="-DLINUX $(SITE_LYDEFS)"
  380.     cd src; $(MAKE) all CC="gcc" MCFLAGS="-g -DUNIX -DNO_KEYPAD -DNO_TTYTYPE -DLINUX -I../$(WWWINC) $(SITE_DEFS)" LIBS="-lcurses -ltermcap $(WAISLIB) $(SOCKSLIB)" WWWLIB="../WWW/Library/unix/libwww.a"
  381.  
  382. linux-ncurses:
  383.     cd WWW/Library/unix; $(MAKE) CC="gcc" LYFLAGS="-DLINUX $(SITE_LYDEFS)"
  384.     cd src; $(MAKE) all CC="gcc" MCFLAGS="-g -DUNIX -DNCURSES -DFANCY_CURSES -DNO_KEYPAD -DNO_TTYTYPE -DLINUX -I/usr/include/ncurses -I../$(WWWINC) $(SITE_DEFS)" LIBS="-lncurses $(WAISLIB) $(SOCKSLIB)" WWWLIB="../WWW/Library/unix/libwww.a"
  385.  
  386. aix4: 
  387.     cd WWW/Library/rs6000; $(MAKE) LYFLAGS="-D_BSD=44 -DSVR4_BSDSELECT \
  388.         $(SITE_LYDEFS)"
  389.     cd src; $(MAKE) all CC="cc" MCFLAGS="-g -DFANCY_CURSES -DUNIX \
  390.         -D_BSD=44 -DSVR4_BSDSELECT -I../$(WWWINC) $(SITE_DEFS)" \
  391.         LIBS="-lcurses -lbsd $(WAISLIB) $(SOCKSLIB)" \
  392.         WWWLIB="../WWW/Library/rs6000/libwww.a"
  393.  
  394. aix32: 
  395.     cd WWW/Library/rs6000; $(MAKE) LYFLAGS="$(SITE_LYDEFS)"
  396.     cd src; $(MAKE) all CC="cc" MCFLAGS="-g -DFANCY_CURSES -DUNIX \
  397.         -I../$(WWWINC) $(SITE_DEFS)" \
  398.         LIBS="-lcurses -lbsd $(WAISLIB) $(SOCKSLIB)" \
  399.         WWWLIB="../WWW/Library/rs6000/libwww.a"
  400.  
  401. aix31: 
  402.     cd WWW/Library/rs6000; $(MAKE) LYFLAGS="$(SITE_LYDEFS)"
  403.     cd src; $(MAKE) all CC="cc" MCFLAGS="-g -DUNIX -I../$(WWWINC) $(SITE_DEFS)" \
  404.         LIBS="-lcurses -lbsd $(WAISLIB) $(SOCKSLIB)" \
  405.         WWWLIB="../WWW/Library/rs6000/libwww.a"
  406.  
  407. ultrix:  
  408.     cd WWW/Library/decstation; $(MAKE) LYFLAGS="$(SITE_LYDEFS)"
  409.     cd src; $(MAKE) all CC="cc" MCFLAGS="-g -Olimit 600 -DFANCY_CURSES \
  410.          -DUNIX -DULTRIX -I../$(WWWINC) $(SITE_DEFS)" \
  411.         LIBS="-lcursesX -ltermcap $(WAISLIB) $(SOCKSLIB)" \
  412.         WWWLIB="../WWW/Library/decstation/libwww.a "
  413.  
  414. sun:
  415.     @echo "Run make again and use \"make sun3\" or \"make sun4\""
  416.  
  417. #
  418. # add -lresolv to the last "LIBS" entry within the quotes if needed
  419. #
  420. sun3:    
  421.     cd WWW/Library/sun3; $(MAKE) LYFLAGS="$(SITE_LYDEFS)" CC="gcc"
  422.     cd src; $(MAKE) all CC="gcc" MCFLAGS="-g -DUNIX -DFANCY_CURSES \
  423.         -I../$(WWWINC) -DSUN -DLOCALE -I/usr/5include $(SITE_DEFS)"\
  424.         LIBS="-lcurses -ltermcap -L/usr/5lib $(WAISLIB) $(SOCKSLIB)" \
  425.         WWWLIB="../WWW/Library/sun3/libwww.a"
  426.  
  427. #
  428. # add -lresolv to the last "LIBS" entry within the quotes if needed
  429. #
  430. sun4:
  431.     cd WWW/Library/sun4; $(MAKE) CC="gcc" LYFLAGS="$(SITE_LYDEFS)"
  432.     cd src; $(MAKE) all CC="gcc" MCFLAGS="-g -DUNIX -DFANCY_CURSES \
  433.         -I../$(WWWINC) -DSUN -DSUN4 -DLOCALE -I/usr/5include \
  434.         $(SITE_DEFS)" \
  435.         LIBS="-lcurses -ltermcap -L/usr/5lib $(WAISLIB) $(SOCKSLIB)" \
  436.         WWWLIB="../WWW/Library/sun4/libwww.a"
  437.  
  438. #
  439. # use the holiest of holiest --- PURIFY
  440. # add -lresolv to the last "LIBS" entry within the quotes if needed
  441. #
  442. sun4-pure:
  443.     cd WWW/Library/sun4; $(MAKE) CC="gcc" LYFLAGS="$(SITE_LYDEFS)"
  444.     cd src; $(MAKE) all CC="purify -cache-dir=/home/purify-cache -always-use-cache-dir=yes -optimize-save-o7=no gcc" \
  445.         MCFLAGS="-g -DUNIX -DFANCY_CURSES \
  446.         -I../$(WWWINC) -DSUN -DSUN4 -DLOCALE -I/usr/5include \
  447.         $(SITE_DEFS)" \
  448.         LIBS="-lcurses -ltermcap -L/usr/5lib \
  449.         -lresolv $(WAISLIB) $(SOCKSLIB)" \
  450.         WWWLIB="../WWW/Library/sun4/libwww.a"
  451.  
  452. next: 
  453.     cd WWW/Library/next; $(MAKE) LYFLAGS="$(SITE_LYDEFS)"
  454.     cd src; $(MAKE) all CC="cc" MCFLAGS="-g -DUNIX -DNEXT -DNO_CUSERID \
  455.         -DNO_GETCWD -DNO_PUTENV -DNO_KEYPAD -I../$(WWWINC) \
  456.         -I../$(WWWINC) $(SITE_DEFS)" \
  457.         LIBS="-lcurses -ltermcap $(WAISLIB) $(SOCKSLIB)" \
  458.         WWWLIB="../WWW/Library/next/libwww.a"
  459.  
  460. next-ncurses:
  461.     cd WWW/Library/next; $(MAKE) LYFLAGS="$(SITE_LYDEFS)"
  462.     cd src; $(MAKE) all CC="cc" MCFLAGS="-g -DUNIX -DNEXT -DNCURSES \
  463.         -DNO_GETCWD -DNO_CUSERID -DNO_KEYPAD -DNO_TTYTYPE \
  464.         -DFANCY_CURSES -DNO_PUTENV -I/usr/local/include \
  465.         -I../$(WWWINC) -I../$(WWWINC) $(SITE_DEFS)" \
  466.         LIBS="-L/usr/local/lib -lncurses \
  467.         -ltermcap $(WAISLIB) $(SOCKSLIB)" \
  468.         WWWLIB="../WWW/Library/next/libwww.a"
  469.  
  470. #    isc - Interactive Unix for i386 and i486 machines
  471. isc:
  472.     cd WWW/Library/isc; $(MAKE) CC="gcc" LYFLAGS="$(SITE_LYDEFS)"
  473.     cd src; $(MAKE) all CC="gcc" MCFLAGS="-g -DISC -DFANCY_CURSES -DUNIX \
  474.         -DNO_UTMP -DISC -Dvfork=fork -I../$(WWWINC) $(SITE_DEFS)" \
  475.         LIBS="-lcurses -ltermcap -linet -lnsl_s \
  476.         -lcposix $(WAISLIB) $(SOCKSLIB)" \
  477.         WWWLIB="../WWW/Library/isc/libwww.a"
  478.  
  479. traversal:
  480.     cd WWW/Library/rs6000; $(MAKE) LYFLAGS="$(SITE_LYDEFS)"
  481.     cd src; $(MAKE) traversal CC="cc" MCFLAGS="-g -DFANCY_CURSES -DUNIX  \
  482.         -DTRAVERSAL -I../$(WWWINC) $(SITE_DEFS)" \
  483.         LIBS="-lcurses -ltermcap -lbsd $(WAISLIB) $(SOCKSLIB)" \
  484.         WWWLIB="../WWW/Library/rs6000/libwww.a"
  485.  
  486. clean:
  487.     rm -f WWW/Library/*/*.[aob]
  488.     rm -f WWW/Library/*/.created
  489.     cd src; $(MAKE) clean
  490.     rm -f *.b src/lynx core Lynx.leaks
  491.  
  492. tar:  clean
  493.     rm -f lynx
  494.     $(MAKE) save
  495.  
  496. turnover:    clean
  497.     $(MAKE) save
  498.  
  499. zipcompress: compress zip
  500.     echo "done!"
  501.  
  502. zip:  clean
  503.     rm -f src/lynx
  504.     rm -f lynx
  505.     rm -f src/a.out
  506.     rm -f ../lynx2-4.zip
  507.     cd ..; rm -f lynx2-4.zip; zip -r lynx2-4.zip lynx2-4
  508.  
  509. save:
  510.     cd ..; rm -f lynx2-4.tar; tar -cf - lynx2-4 > lynx2-4.tar
  511.  
  512. compress: tar
  513.     cd ..; rm -f lynx2-4.tar.Z; compress -f -v lynx2-4.tar
  514.  
  515. install: $(exec)/lynx $(doc)/lynx.1 $(cfg) $(cfg)/lynx.cfg\
  516.     $(cfg)/about_lynx.html $(cfg)/readme.html $(cfg)/help\
  517.     $(cfg)/help/lynx_help_main.html\
  518.     $(cfg)/help/Lynx_users_guide.html\
  519.     $(cfg)/help/keystroke_commands
  520.  
  521. $(exec)/lynx: lynx
  522.     cp lynx $@
  523. #    chmod 711 $@
  524. #    chown bin:bin $@
  525.  
  526. $(doc)/lynx.1: lynx.man
  527.     cp $? $@
  528. #    chmod 444 $@
  529. #    chown bin:bin $@
  530.  
  531. $(cfg)/readme.html: about_lynx/readme.html
  532.     cp $? $@
  533. #    chmod 444 $@
  534. #    chown bin:bin $@
  535.  
  536. $(cfg)/about_lynx.html: about_lynx/about_lynx.html
  537.     cp $? $@
  538. #    chmod 444 $@
  539. #    chown bin:bin $@
  540.  
  541. $(cfg) $(cfg)/help:
  542.     mkdir $@
  543. #    chmod 755 $@
  544. #    chown bin:bin $@
  545.  
  546. $(cfg)/help/lynx_help_main.html: lynx_help/lynx_help_main.html
  547.     cp $? $@
  548. #    chmod 444 $@
  549. #    chown bin:bin $@
  550.  
  551. $(cfg)/help/Lynx_users_guide.html: lynx_help/Lynx_users_guide.html
  552.     cp $? $@
  553. #    chmod 444 $@
  554. #    chown bin:bin $@
  555.  
  556. $(cfg)/help/keystroke_commands:
  557.     mkdir $@
  558. #    chmod 755 $@
  559. #    chown bin:bin $@
  560.     cp lynx_help/keystroke_commands/* $@
  561. #    chmod 644 $@
  562. #    chown bin:bin $@/*
  563.  
  564. $(cfg)/lynx.cfg: lynx.cfg
  565.     cp $? $@
  566. #    chmod 444 $@
  567. #    chown bin:bin $@
  568.